<table border="1"> 
<tr> 
<td width="35%"><p align="center"><i><b>Recipe</b></i></td>
<td width="20%"><p align="center"><i><b>Category</b></i></td>
<td width="20%"><p align="center"><i><b>Main Ingredient</b></i></td> 
<td width="15%"><p align="center"><i><b>Date</b></i></td> 
</tr>
<% @recipes.each do |recipe| %>
<tr><% if (@category == nil) && (@ingredient == nil)  %> 
<td><%= link_to recipe.title,  :action => "show",  :id => recipe.id %><font size=-1>
<%= link_to "(delete)",  {:action => "delete", :id => recipe.id}, :confirm => "Really delete #{recipe.title}?" %>
</font></td>

<td><%= link_to recipe.category.name, :action => "listByCategory", :category  => recipe.category.name %></td>
<td><%= link_to recipe.ingredient.name, :action => "listByIngredient",  :ingredient => recipe.ingredient.name %></td>
<td><%= recipe.date %></td>
</tr>
<% end %>
<% end %>
</table>
<p>Click on a Category to display all recipies in that catagory</p>
<p>Click on a Main Ingredient to display all recipes with that main ingredient</p>
<p>or click on one of the options below.</p>


